package top.codechap.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author CodeChap
 * @date 2021-06-18 10:17
 * @description Main
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(ConfigOfAOP.class);

        MathCalculator calculate = context.getBean(MathCalculator.class);
        calculate.div(2, 1);
    }
}
